<template>
  <div class="exampleitem-top">
    <NavHeader />
    <div class="exampleitem-top-content">
      <h1>提升数据质量，优化业务流程</h1>
      <h3>
        友盟智能科技为您提供全面的主数据管理解决方案，确保数据的准确性、一致性和完整性。
      </h3>
    </div>
  </div>
  <div class="exampleitem-center">
    <div class="exampleitem-center-item1">
      <div class="exampleitem-center-item1-title">企业主数据现状</div>
      <h3>
        随着信息技术的不断创新(大数据、云计算等)、用户素质的提升(移动智能终端普及、服务意识深入人心)以及信息化部门态度的转变(以人为本、面向服务)，企业对主数据管理的需求日益增加。
      </h3>
      <img src="@/assets/img/exampleitem/sjxz.png" alt="" />
    </div>
    <div class="exampleitem-center-item2">现状解决方案</div>
    <h3 class="exampleitem-center-item2h3">
      友盟智能科技的主数据管理(MDM)解决方案可以帮助企业创建并维护整个企业内主数据的单一视图，提高数据质量，统一客户定义，提升数据分析效率。
    </h3>
    <!-- <div class="exampleitem-center-item3">
      <div class="exampleitem-center-item3-box" v-for="(item, index) in list">
        <div class="exampleitem-center-item3-box-content">
          <h1>{{ item.title }}</h1>
          <h3>{{ item.desc }}</h3>
        </div>
        <img :src="item.img" alt="" />
      </div>
    </div> -->
    <div class="exampleitem-center-item4">
      <div class="exampleitem-center-item4-left">
        <div
          :class="[
            'exampleitem-center-item4-left-box',
            current == index
              ? 'exampleitem-center-item4-left-currentclass'
              : '',
          ]"
          v-for="(item, index) in list"
          @click="selectCurrent(index, item)"
        >
          <h2>{{ item.title }}</h2>
          <h3>{{ item.desc }}</h3>
        </div>
      </div>
      <div class="exampleitem-center-item4-right">
        <img :src="currentImg" alt="" />
      </div>
    </div>
  </div>
  <BackTop />
  <Recommend backColor="#fff" />
  <pageBottom backColor="#fff" />
</template>
<script lang="ts" setup>
import { ref, reactive, computed, onMounted, watch } from "vue";
import NavHeader from "@/components/NavHeader.vue";
import pageBottom from "@/components/pageBottom.vue";
import BackTop from "@/components/BackTop.vue";
import Recommend from "@/components/Recommend.vue";

import sjqx from "@/assets/img/exampleitem/sjqx.png";
import sjhc from "@/assets/img/exampleitem/sjhc.png";
import sjcjy from "@/assets/img/exampleitem/sjcjy.png";
import gxpl from "@/assets/img/exampleitem/gxpl.png";
import ksh from "@/assets/img/exampleitem/ksh.png";
import fwbz from "@/assets/img/exampleitem/fwbz.png";

let current = ref(0);
let currentImg = ref(sjqx);
let list = reactive([
  {
    title: "主数据清洗",
    desc: "通过系统内置多维度的稽核算法与流程管理约束，结合人机结合的方式，对现有主数据进行标准化清洗，确保数据的规范性和完整性。",
    img: sjqx,
  },
  {
    title: "主数据核查QC",
    desc: "通过电话验证、官方网站、国家权威网站等多渠道进行数据验证，确保数据的真实性和有效性。",
    img: sjhc,
  },
  {
    title: "主数据采集源",
    desc: "多数据源采集，包括商业公司提供、国家权威机构、委托方提供、流向感知、爬虫系统收集等，保证数据的时效性、准确性和全面性。",
    img: sjcjy,
  },
  {
    title: "主数据更新频率",
    desc: "根据主数据库类型和数据来源，设定不同的运维频率，如日常、月度、年度等。",
    img: gxpl,
  },
  {
    title: "可视化展现",
    desc: "模糊匹配和分词匹配等方式进行快速检索，达到秒级响应。同时，支持精确匹配、系统可满足出厂价、一级商价、二级商价以及零售价等设定，支持按效期、地域、客户等维度粒度对价格维护管理。",
    img: ksh,
  },
  {
    title: "服务保障",
    desc: "友盟智能科技提供全面的服务保障，包括客观立场、有效沟通、信息安全和作业规范，确保数据服务的高质量和安全性。",
    img: fwbz,
  },
]);
const selectCurrent = (index: number, item: any) => {
  current.value = index;
  currentImg.value = item.img;
};
</script>
<style lang="scss" scoped>
.exampleitem-top {
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-image: url("@/assets/img/exampleitem/bg.png");
  height: 100vh;
  position: relative;
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4784313725);
  }
  &-content {
    position: absolute;
    margin-left: 18%;
    top: 50%;
    h1 {
      margin-bottom: 20px;
      font-weight: 700;
      font-size: 35px;
    }
  }
}
.exampleitem-center {
  color: #000;
  background-color: #fff;
  padding-bottom: 200px;
  &-item1 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    &-title {
      width: 100%;
      height: 60px;
      background-image: url("@/assets/img/exampleitem/tle.png");
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center;
      font-size: 33px;
      font-weight: 500;
      letter-spacing: 0.05em;
      text-align: center;
      line-height: 60px;
      margin: 50px 0;
    }
    h3 {
      color: #666;
      text-align: center;
      width: 70%;
      line-height: 35px;
      margin: auto;
      margin-bottom: 30px;
      font-size: 18px;
    }
    img {
      width: 70%;
      padding: 20px 300px;
      // position: absolute;
      // left: 50%;
      // transform: translateX(-50%);
      margin-bottom: 60px;
    }
  }
  &-item2 {
    text-align: center;
    font-size: 33px;
    margin-bottom: 20px;
  }
  &-item2h3 {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
  }
  &-item3 {
    display: flex;
    justify-content: space-between;
    width: 70%;
    margin: auto;
    flex-wrap: wrap;

    &-box {
      width: 47%;
      margin-top: 50px;
      margin-bottom: 30px;
      background-color: #f3f3f6;
      border-radius: 20px;
      height: 550px;
      position: relative;
      overflow: hidden;
      &-content {
        padding: 30px;
      }
      h1 {
        text-align: center;
      }
      h3 {
        text-align: center;
        margin: 30px 0;
        color: #666;
      }
      img {
        width: 70%;
        margin: auto;
        // position: absolute;
        // bottom: 0;
      }
    }
  }
  &-item4 {
    display: flex;
    justify-content: space-between;
    width: 70%;
    margin: auto;
    height: 750px;
    &-left {
      width: 37%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%;

      &-box {
        background-color: #eff5ff;
        height: 15.5%;
        padding: 15px 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-radius: 5px;
        cursor: pointer;
        h3 {
          font-size: 14px;
        }
        h2 {
          font-size: 18px;
          font-weight: 700;
          margin-bottom: 3px;
        }
      }
      &-currentclass {
        background-color: #0069ea;
        color: #fff;
      }
    }
    &-right {
      width: 62%;
      height: 100%;
      border-radius: 5px;
      box-shadow: 0px 4px 14px 0px rgba(204, 213, 222, 0.5);
      display: flex;
      align-items: center;
      overflow: hidden;
      img {
        width: 100%;
        margin: auto;
        border-radius: 5px;
      }
    }
  }
}
</style>
